<template>
    <div class="app-container1 show-back-class">
      <div style="width: 100%;height: 60px;border-bottom: #1C97FF 1px solid;padding:  10px 20px;display: flex;">
        <img style="width: 340px; height: 40px; margin-right: 20px;" src="@/assets/bigScreen/index/LOGO.jpg" alt="">
        <big-tab-Bar />
      </div>
      <div class="content-bottom">
       <el-table v-loading="loading" :height="tableHeight" :data="listList" @selection-change="handleSelectionChange">
        <el-table-column width="55" type="index" label="序号" align="center"/>
         <el-table-column label="项目编号" align="center" prop="projectCode" />
         <el-table-column label="项目名称" align="center" prop="projectName" />
         <el-table-column label="所属省份" align="center" prop="province" />
         <el-table-column label="方法学编号" align="center" prop="methodology" />
         <el-table-column label="计入期开始时间" align="center" prop="startTime" />
         <el-table-column label="计入期结束时间" align="center" prop="lastTime" />
         <el-table-column label="预计年均减排量(t)" align="center" prop="yearAvgEmission" />
         <el-table-column label="预计计入期总减排量(t)" align="center" prop="totalEmission" />
         <el-table-column label="申请登记减排量(t)" align="center" prop="registerEmission" />
       </el-table>
  
       <pagination
         v-show="total>0"
         :total="total"
         :page.sync="queryParams.pageNum"
         :limit.sync="queryParams.pageSize"
         @pagination="getList"
       />
      </div>
    </div>
  </template>
  
  <script>
  import { listcCerData } from "@/api/carbon/ccerProject";
  import bigTabBar from '@/views/components/bigTabBar/index'
  export default {
    name: "List",
    components:{
      bigTabBar
    },
    data() {
      return {
        // 遮罩层
        loading: true,
        stationInfoList:[],
        // 选中数组
        ids: [],
        // 非单个禁用
        single: true,
        // 非多个禁用
        multiple: true,
        // 显示搜索条件
        showSearch: true,
        // 总条数
        total: 0,
        // CCER项目表格数据
        listList: [],
       // // 项目名称数据
       //  nameList: [],
        // 弹出层标题
        title: "",
        // 是否显示弹出层
        open: false,
        // 查询参数
        queryParams: {
          pageNum: 1,
          pageSize: 10,
        },
        // 表单参数
        form: {},
        // 表单校验
        rules: {
        },
        tableHeight: '',
      };
    },
    created() {
      this.tableHeight = window.innerHeight - 200;
      this.getList();
      //this.getNameList();
    },
    methods: {
      /** 查询CCER项目列表 */
      getList() {
        this.loading = true;
        listcCerData(this.queryParams).then(response => {
          this.listList = response.rows;
          this.total = response.total;
          this.loading = false;
        });
      },
    }
  };
  </script>
  <style lang="scss" scoped>
  .app-container1{
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #000D17;
    // background: url("../../assets/bg2.jpg") no-repeat;
    // background-size: 100% 100%;
  }
  .content-bottom{
    width: 100%;
    padding: 20px;
    height: calc(100% - 60px);
    background-color: #000D17;
  }
  .pagination-container {
    height: 50px;
  }
  </style>
  <style>
  .date-select-class {
    background-color: rgba(17,93,131,255) !important;
  }
  </style>